package controller

import (
	"bytes"
	"github.com/gin-gonic/gin"
	sk "lottery/application/sdkInit"
	"net/http"
)

func GetAllStudent(ctx *gin.Context)  {
	resp, err := sk.ChannelQuery("queryStudent", [][]byte{

	})
	if err != nil {
		ctx.String(http.StatusInternalServerError, err.Error())
	}
	ctx.String(http.StatusOK, bytes.NewBuffer(resp.Payload).String())
}